
<form name="editForm" role="form" novalidate ng-submit="vm.save()">
    <div class="card">
    <div class="card-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.clear()">&times;</button>
        <h4 class="modal-title" id="myDoctorLabel" data-translate="zhserverApp.doctor.home.createOrEditLabel">Create or edit a Doctor</h4>
    </div>
    <div class="card-block">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" ng-show="vm.doctor.id">
            <label for="id" data-translate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                    ng-model="vm.doctor.id" readonly />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.workingyears" for="field_workingyears">Workingyears</label>
            <input type="number" class="form-control" name="workingyears" id="field_workingyears"
                    ng-model="vm.doctor.workingyears"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.login" for="field_login">Login</label>
            <input type="text" class="form-control" name="login" id="field_login"
                    ng-model="vm.doctor.login"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.country" for="field_country">Country</label>
            <input type="text" class="form-control" name="country" id="field_country"
                    ng-model="vm.doctor.country"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.school" for="field_school">School</label>
            <input type="text" class="form-control" name="school" id="field_school"
                    ng-model="vm.doctor.school"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.resume" for="field_resume">Resume</label>
            <input type="text" class="form-control" name="resume" id="field_resume"
                    ng-model="vm.doctor.resume"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.position" for="field_position">Position</label>
            <input type="text" class="form-control" name="position" id="field_position"
                    ng-model="vm.doctor.position"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.hospital" for="field_hospital">Hospital</label>
            <input type="text" class="form-control" name="hospital" id="field_hospital"
                    ng-model="vm.doctor.hospital"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.department" for="field_department">Department</label>
            <input type="text" class="form-control" name="department" id="field_department"
                    ng-model="vm.doctor.department"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.doctorname" for="field_doctorname">Doctorname</label>
            <input type="text" class="form-control" name="doctorname" id="field_doctorname"
                    ng-model="vm.doctor.doctorname"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.headimage" for="field_headimage">Headimage</label>
            <input type="text" class="form-control" name="headimage" id="field_headimage"
                    ng-model="vm.doctor.headimage"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="zhserverApp.doctor.flag" for="field_flag">Flag</label>
            <input type="checkbox" class="form-control" name="flag" id="field_flag"
                    ng-model="vm.doctor.flag"
                     />
        </div>

    </div>
    <div   class="card-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()">
            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary">
            <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span>
        </button>
    </div>
        </div>
</form>
